package com.zzb.projectfactory.framework.role.event;


import com.zzb.projectfactory.framework.event.BaseEvent;
import com.zzb.projectfactory.framework.event.EventEnums;
import com.zzb.projectfactory.framework.role.entity.User;

import java.util.Date;

/**
 * 登录成功事件
 * Created by zhangzhenbin on 17-2-21.
 */
public class LoginSuccessEvent extends BaseEvent {
    private User user;
    private String ip;
    private Date loginDate;

    @Override
    protected String getEventId() {
        return EventEnums.LOGIN_SUCCESS.name();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

}
